(function(win){
    var a = 1;
    win.test1 = function(){
        console.log(a);
        console.log(b);
        console.log(c);
    }
})(window);
